package com.bdm.property.management.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @Author: MAD4O
 * @Date: 2020/8/22 16:00
 * @Description: 
 */
@Data
@TableName(value = "`owner`")
public class Owner implements Serializable {
    /**
     * 业主信息表编号，和其他数据表联系
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 业主姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 业主联系电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 业主入住时间
     */
    @TableField(value = "time")
    private Date time;

    /**
     * 常住人口数
     */
    @TableField(value = "population")
    private Integer population;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PHONE = "phone";

    public static final String COL_TIME = "time";

    public static final String COL_POPULATION = "population";
}